package com.permissions.dispatcher.processor.exception;

import com.permissions.dispatcher.processor.RuntimePermissionsElement;

/**
 * 无注解异常
 */
public class NoAnnotatedMethodsException extends RuntimeException {
    /**
     * 无注解异常
     */
    public NoAnnotatedMethodsException(RuntimePermissionsElement rpe, Class<?> type) {
        super(
                "Annotated class '"
                        + rpe.getInputClassName()
                        + "' doesn't have any method annotated with '@"
                        + type.getSimpleName()
                        + '\'');
    }
}
